package com.glenet.salary.action;

import java.util.List;

import com.glenet.salary.dao.HrSalaryDao;
import com.glenet.salary.entities.HrSalary;

@SuppressWarnings("serial")
public class HrSalaryAction extends BaseAction {
	
	private HrSalaryDao salaryDao = new HrSalaryDao();
	
	private List<HrSalary> list;


	public String execute() throws Exception {
		list = salaryDao.list(offset, limit);
		return SUCCESS;
	}
	
	public String none() throws Exception {
		list = salaryDao.list(offset, limit);
		System.out.println(list.size());
		return SUCCESS;
	}

	public List<HrSalary> getList() {
		return list;
	}

	public void setList(List<HrSalary> list) {
		this.list = list;
	}
	

}
